From: Keir Fraser Date: Wed, 26 May 2010 07:14:51 +0000 (+0100) Subject: Allow space in vbd path name X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12084 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cf928043f97066944de78f214414a2493495e4bd;p=xen.git Allow space in vbd path name c/s 20393 breaks existing domain configuration that contains spaces in the vbd path name. Fixed by this trivial patch which provides missing quotes. Signed-off-by: Jim Fehlig --- diff --git a/tools/hotplug/Linux/block b/tools/hotplug/Linux/block index ff85bcb433..122e93e35b 100644 --- a/tools/hotplug/Linux/block +++ b/tools/hotplug/Linux/block @@ -272,8 +272,8 @@ mount it read-write in a guest domain." if [ "x$mode" != 'x!' ] then - inode=$(stat -c '%i' $file) - dev=$(stat -c '%D' $file) + inode=$(stat -c '%i' "$file") + dev=$(stat -c '%D' "$file") if [ -z "$inode" ] || [ -z "$dev" ] then fatal "Unable to lookup $file: dev: $dev inode: $inode"